Eclipse Platform
Pre-release 3.0

org.eclipse.jface.text.contentassist
Interface IContentAssistantExtension

All Known Implementing Classes:
ContentAssistant

public interface IContentAssistantExtension

Extension interface for IContentAssistant. Updates the content assistant to be aware of documents with multiple partitions.

Since:
3.0

Method Summary
 String completePrefix()
          Complete the common prefix of the available choices.
 String getDocumentPartitioning()
          Returns the document partitioning this content assistant is using.
 void install(IContentAssistSubject contentAssistSubject)
          Installs content assist support on the given subject.
 

Method Detail

getDocumentPartitioning

public String getDocumentPartitioning()
Returns the document partitioning this content assistant is using.

Returns:
the document partitioning this content assistant is using

install

public void install(IContentAssistSubject contentAssistSubject)
Installs content assist support on the given subject.

XXX: This is work in progress and can change anytime until API for 3.0 is frozen.

Parameters:
contentAssistSubject - the one who requests content assist
Throws:
UnsupportedOperationException - if the content assist does not support this method

completePrefix

public String completePrefix()
Complete the common prefix of the available choices.

Returns:
an optional error message if no proposals can be computed

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.